home *** CD-ROM | disk | FTP | other *** search
- /*
- * The contents of this file are subject to the Netscape Public
- * License Version 1.1 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.mozilla.org/NPL/
- *
- * Software distributed under the License is distributed on an "AS
- * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- * implied. See the License for the specific language governing
- * rights and limitations under the License.
- *
- * The Original Code is Mozilla Communicator client code, released
- * March 31, 1998.
- *
- * The Initial Developer of the Original Code is Netscape
- * Communications Corporation. Portions created by Netscape are
- * Copyright (C) 1998-1999 Netscape Communications Corporation. All
- * Rights Reserved.
- *
- * Contributor(s):
- * Ben Goodger (03/11/99)
- */
-
- //var bundle = srGetStrBundle("chrome://communicator/locale/profile/newProfile1_2.properties");
- //var detect = false;
-
- // the getting procedure is unique to each page, since each page can different
- // types of elements (not necessarily form elements). So each page must provide
- // its own GetFields function
- function GetFields()
- {
- var first21 = document.getElementById("first21").value;
- var middle21 = document.getElementById("middle21").value;
- var last21 = document.getElementById("last21").value;
- var nickname21 = document.getElementById("nickname21").value;
- var maiden21 = document.getElementById("maiden21").value;
- var address21 = document.getElementById("address21").value;
- var zipcode21 = document.getElementById("zipcode21").value;
- var city21 = document.getElementById("city21").value;
- var state21 = document.getElementById("state21").value;
- var country21 = document.getElementById("country21").value;
-
- var rv = {
- first21: { id: "first21", value: first21 },
- middle21: { id: "middle21", value: middle21 },
- last21: { id: "last21", value: last21 },
- nickname21: { id: "nickname21", value: nickname21 },
- maiden21: { id: "maiden21", value: maiden21 },
- address21: { id: "address21", value: address21 },
- zipcode21: { id: "zipcode21", value: zipcode21 },
- city21: { id: "city21", value: city21 },
- state21: { id: "state21", value: state21 },
- country21: { id: "country21", value: country21 },
-
- }
- return rv;
- }
-
- // the setting procedure is unique to each page, and as such each page
- // must provide its own SetFields function
- function SetFields(element,set)
- {
- element = document.getElementById(element);
- //dump("In SetFields(" + element + "," + set + ");\n");
- if(element.id == "first21"){
- element.value = set;
- }
- if(element.id == "middle21"){
- element.value = set;
- }
- if(element.id == "last21"){
- element.value = set;
- }
- if(element.id == "nickname21"){
- element.value = set;
- }
- if(element.id == "maiden21"){
- element.value = set;
- }
- if(element.id == "address21"){
- element.value = set;
- }
- if(element.id == "zipcode21"){
- element.value = set;
- }
- if(element.id == "city21"){
- element.value = set;
- }
- if(element.id == "state21"){
- element.value = set;
- }
- if(element.id == "country21"){
- element.value = set;
- }
-
-
- }
-
-
-